from pydantic_settings import BaseSettings, SettingsConfigDict


class FatigueConfig(BaseSettings):
    continue_run_time: int = 14400000
    continue_rest_time: int = 1200000
    jump_continue_time: int = 600000
    map_url: str = "https://restapi.autoai.com/geocoder/v1/regeo"
    map_key: str = "n51ZGv79DCVk7397i97il7u11dP5G13K"
    model_config = SettingsConfigDict(
        env_file=".env",
        env_file_encoding="utf-8",
        extra="ignore"
    )

    def __str__(self):
        return f"FatigueConfig[continue_run_time:{self.continue_run_time},continue_rest_time:{self.continue_rest_time},jump_continue_time:{self.jump_continue_time}]"


# 使用示例
fatigue_config = FatigueConfig()
